package com.log;

import org.slf4j.Logger;
import org.slf4j.LoggerFactory;

public class LogToFile {
    public static void main(String[] args) {
        Logger logger = LoggerFactory.getLogger(LogToFile.class);
        for (int i = 0; i < 100; i++) {
            logger.error("error模式输出");
            logger.warn("warn模式输出");
            logger.info("info模式输出");
            logger.debug("debug模式输出");
            logger.trace("trace模式输出");
        }
    }
}
